#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_dark_clicked()
{
    this->setStyleSheet("background-color: #333");
     ui->textEdit->setStyleSheet("background-color: #333; color: #fff;");
     ui->pushButton_light->setStyleSheet("color: #fff");
     ui->pushButton_dark->setStyleSheet("color: #fff");
}
void Widget::on_pushButton_light_clicked()
{
    this->setStyleSheet("background-color: #f3f3f3");
    ui->textEdit->setStyleSheet("background-color: #fff; color: #000;");
     ui->pushButton_light->setStyleSheet("color: #000");
     ui->pushButton_dark->setStyleSheet("color: #000");
}
